import requests
from bs4 import BeautifulSoup


def hot():
    # id = 6
    url = 'https://www.thepaper.cn/'
    response = requests.get(url).text
    soup = BeautifulSoup(response, 'lxml')
    raw_data = soup.select('#listhot0 > li > a')
    data = []
    for each in raw_data:
        data.append([each.text, 'https://www.thepaper.cn/' + each.get('href')])
    return str(data)


if __name__ == '__main__':
    hot()